# 10鼠检验1000药，一瓶毒药，同时吃，找出毒药
rats = []
for i in range(10):
    rats.append([])
for n in range(10):
    for i in range(2**n, 2**n*2):
        if i <= 1000:
            rats[n].append(i)
# print(rats)

new_rats = []
for i in range(10):
    new_rats.append([])
for n in range(10):
    for i in range(2**n, 2**n*2):
        if i <= 1000:
            new_rats[n].append(i)

for k in range(10):
    for num in rats[k]:
        while num < 1000:
            num += 2**(k+1)
            new_rats[k].append(num)
for k in new_rats:
    k.sort()
print(new_rats)